namespace VAdvantage.Model
{

/** Generated Model - DO NOT CHANGE */
using System;
using System.Text;
using VAdvantage.DataBase;
using VAdvantage.Common;
using VAdvantage.Classes;
using VAdvantage.Process;
using VAdvantage.Model;
using VAdvantage.Utility;
using System.Data;
/** Generated Model for VSS_BASIC_INFO_CONTACT
 *  @author Jagmohan Bhatt (generated) 
 *  @version Vienna Framework 1.1.1 - $Id$ */
public class X_VSS_BASIC_INFO_CONTACT : PO
{
public X_VSS_BASIC_INFO_CONTACT (Context ctx, int VSS_BASIC_INFO_CONTACT_ID, String trxName) : base (ctx, VSS_BASIC_INFO_CONTACT_ID, trxName)
{
/** if (VSS_BASIC_INFO_CONTACT_ID == 0)
{
SetName (null);
SetVSS_Basic_Info_Contact_ID (0);
}
 */
}
public X_VSS_BASIC_INFO_CONTACT (Ctx ctx, int VSS_BASIC_INFO_CONTACT_ID, String trxName) : base (ctx, VSS_BASIC_INFO_CONTACT_ID, trxName)
{
/** if (VSS_BASIC_INFO_CONTACT_ID == 0)
{
SetName (null);
SetVSS_Basic_Info_Contact_ID (0);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_BASIC_INFO_CONTACT (Context ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_BASIC_INFO_CONTACT (Ctx ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_BASIC_INFO_CONTACT (Ctx ctx, IDataReader dr, String trxName) : base(ctx, dr, trxName)
{
}
/** Static Constructor 
 Set Table ID By Table Name
 added by ->Harwinder */
static X_VSS_BASIC_INFO_CONTACT()
{
 Table_ID = Get_Table_ID(Table_Name);
 model = new KeyNamePair(Table_ID,Table_Name);
}
/** Serial Version No */
static long serialVersionUID = 27562514384710L;
/** Last Updated Timestamp 7/29/2010 1:07:47 PM */
public static long updatedMS = 1280389067921L;
/** AD_Table_ID=1000009 */
public static int Table_ID;
 // =1000009;

/** TableName=VSS_BASIC_INFO_CONTACT */
public static String Table_Name="VSS_BASIC_INFO_CONTACT";

protected static KeyNamePair model;
protected Decimal accessLevel = new Decimal(7);
/** AccessLevel
@return 7 - System - Client - Org 
*/
protected override int Get_AccessLevel()
{
return Convert.ToInt32(accessLevel.ToString());
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Context ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Ctx ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public override String ToString()
{
StringBuilder sb = new StringBuilder ("X_VSS_BASIC_INFO_CONTACT[").Append(Get_ID()).Append("]");
return sb.ToString();
}
/** Set Greeting.
@param C_Greeting_ID Greeting to print on correspondence */
public void SetC_Greeting_ID (int C_Greeting_ID)
{
if (C_Greeting_ID <= 0) Set_Value ("C_Greeting_ID", null);
else
Set_Value ("C_Greeting_ID", C_Greeting_ID);
}
/** Get Greeting.
@return Greeting to print on correspondence */
public int GetC_Greeting_ID() 
{
Object ii = Get_Value("C_Greeting_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set City.
@param City Identifies a City */
public void SetCity (String City)
{
if (City != null && City.Length > 50)
{
log.Warning("Length > 50 - truncated");
City = City.Substring(0,50);
}
Set_Value ("City", City);
}
/** Get City.
@return Identifies a City */
public String GetCity() 
{
return (String)Get_Value("City");
}
/** Set Comments.
@param Comments Comments or additional information */
public void SetComments (String Comments)
{
if (Comments != null && Comments.Length > 50)
{
log.Warning("Length > 50 - truncated");
Comments = Comments.Substring(0,50);
}
Set_Value ("Comments", Comments);
}
/** Get Comments.
@return Comments or additional information */
public String GetComments() 
{
return (String)Get_Value("Comments");
}
/** Set Company.
@param Company Company */
public void SetCompany (String Company)
{
if (Company != null && Company.Length > 50)
{
log.Warning("Length > 50 - truncated");
Company = Company.Substring(0,50);
}
Set_Value ("Company", Company);
}
/** Get Company.
@return Company */
public String GetCompany() 
{
return (String)Get_Value("Company");
}
/** Set Valuation Date.
@param DateValue Date of valuation */
public void SetDateValue (DateTime? DateValue)
{
Set_Value ("DateValue", (DateTime?)DateValue);
}
/** Get Valuation Date.
@return Date of valuation */
public DateTime? GetDateValue() 
{
return (DateTime?)Get_Value("DateValue");
}
/** Set Description.
@param Description Optional short description of the record */
public void SetDescription (String Description)
{
Set_Value ("Description", Description);
}
/** Get Description.
@return Optional short description of the record */
public String GetDescription() 
{
return (String)Get_Value("Description");
}
/** Set EMail Address.
@param EMail Electronic Mail Address */
public void SetEMail (String EMail)
{
if (EMail != null && EMail.Length > 50)
{
log.Warning("Length > 50 - truncated");
EMail = EMail.Substring(0,50);
}
Set_Value ("EMail", EMail);
}
/** Get EMail Address.
@return Electronic Mail Address */
public String GetEMail() 
{
return (String)Get_Value("EMail");
}
/** Set Fax.
@param Fax Facsimile number */
public void SetFax (String Fax)
{
if (Fax != null && Fax.Length > 50)
{
log.Warning("Length > 50 - truncated");
Fax = Fax.Substring(0,50);
}
Set_Value ("Fax", Fax);
}
/** Get Fax.
@return Facsimile number */
public String GetFax() 
{
return (String)Get_Value("Fax");
}
/** Set Mobile.
@param Mobile Mobile */
public void SetMobile (String Mobile)
{
if (Mobile != null && Mobile.Length > 50)
{
log.Warning("Length > 50 - truncated");
Mobile = Mobile.Substring(0,50);
}
Set_Value ("Mobile", Mobile);
}
/** Get Mobile.
@return Mobile */
public String GetMobile() 
{
return (String)Get_Value("Mobile");
}
/** Set Name.
@param Name Alphanumeric identifier of the entity */
public void SetName (String Name)
{
if (Name == null) throw new ArgumentException ("Name is mandatory.");
if (Name.Length > 50)
{
log.Warning("Length > 50 - truncated");
Name = Name.Substring(0,50);
}
Set_Value ("Name", Name);
}
/** Get Name.
@return Alphanumeric identifier of the entity */
public String GetName() 
{
return (String)Get_Value("Name");
}
/** Set Name 2.
@param Name2 Additional Name */
public void SetName2 (String Name2)
{
if (Name2 != null && Name2.Length > 50)
{
log.Warning("Length > 50 - truncated");
Name2 = Name2.Substring(0,50);
}
Set_Value ("Name2", Name2);
}
/** Get Name 2.
@return Additional Name */
public String GetName2() 
{
return (String)Get_Value("Name2");
}
/** Set Phone.
@param Phone Identifies a telephone number */
public void SetPhone (String Phone)
{
if (Phone != null && Phone.Length > 50)
{
log.Warning("Length > 50 - truncated");
Phone = Phone.Substring(0,50);
}
Set_Value ("Phone", Phone);
}
/** Get Phone.
@return Identifies a telephone number */
public String GetPhone() 
{
return (String)Get_Value("Phone");
}
/** Set Street.
@param Street Street */
public void SetStreet (String Street)
{
if (Street != null && Street.Length > 50)
{
log.Warning("Length > 50 - truncated");
Street = Street.Substring(0,50);
}
Set_Value ("Street", Street);
}
/** Get Street.
@return Street */
public String GetStreet() 
{
return (String)Get_Value("Street");
}
/** Set Number.
@param T_Number Number */
public void SetT_Number (String T_Number)
{
if (T_Number != null && T_Number.Length > 50)
{
log.Warning("Length > 50 - truncated");
T_Number = T_Number.Substring(0,50);
}
Set_Value ("T_Number", T_Number);
}
/** Get Number.
@return Number */
public String GetT_Number() 
{
return (String)Get_Value("T_Number");
}
/** Set URL.
@param URL Full URL address - e.g. http://www.viennaadvantage.com */
public void SetURL (String URL)
{
if (URL != null && URL.Length > 50)
{
log.Warning("Length > 50 - truncated");
URL = URL.Substring(0,50);
}
Set_Value ("URL", URL);
}
/** Get URL.
@return Full URL address - e.g. http://www.viennaadvantage.com */
public String GetURL() 
{
return (String)Get_Value("URL");
}
/** Set VSS_Basic_Info_Contact_ID.
@param VSS_Basic_Info_Contact_ID VSS_Basic_Info_Contact_ID */
public void SetVSS_Basic_Info_Contact_ID (int VSS_Basic_Info_Contact_ID)
{
if (VSS_Basic_Info_Contact_ID < 1) throw new ArgumentException ("VSS_Basic_Info_Contact_ID is mandatory.");
Set_ValueNoCheck ("VSS_Basic_Info_Contact_ID", VSS_Basic_Info_Contact_ID);
}
/** Get VSS_Basic_Info_Contact_ID.
@return VSS_Basic_Info_Contact_ID */
public int GetVSS_Basic_Info_Contact_ID() 
{
Object ii = Get_Value("VSS_Basic_Info_Contact_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set ZIP.
@param ZIP ZIP */
public void SetZIP (String ZIP)
{
if (ZIP != null && ZIP.Length > 50)
{
log.Warning("Length > 50 - truncated");
ZIP = ZIP.Substring(0,50);
}
Set_Value ("ZIP", ZIP);
}
/** Get ZIP.
@return ZIP */
public String GetZIP() 
{
return (String)Get_Value("ZIP");
}
}

}
